﻿using System;
using System.Collections.Generic;

namespace YiCheap.Core.Domain.Products
{
    public class Product:BaseEntity
    {
        private ICollection<ProductVariant> _productVariants;
        private ICollection<ProductCategory> _productCategroies;
        private ICollection<ProductPicture> _productPictures;
       
        public virtual string Name{ get; set; }

        public virtual string ShortDescriptiion { get; set; }

        public virtual string FullDescription { get; set; }

        public virtual string MetakeyWords { get; set; }

        public virtual string MetaDescription { get; set; }

        public virtual string MetaTitle { get; set; }

        public virtual bool Published { get; set; }

        public virtual bool Deleted { get; set; }

        public virtual DateTime CreatedDate { get; set; }

        public virtual DateTime UpdatedDate{ get; set; }

        public virtual ICollection<ProductVariant> ProductVariants
        {
            get { return _productVariants ?? (_productVariants = new List<ProductVariant>()); }
            protected set { _productVariants = value; }
        }

        public virtual ICollection<ProductCategory> ProductCategories 
        {
            get { return _productCategroies ?? (_productCategroies = new List<ProductCategory>()); }
            protected set { _productCategroies = value; }
        }

        public virtual ICollection<ProductPicture> ProductPictures 
        {
            get { return _productPictures ?? (_productPictures = new List<ProductPicture>()); }
            protected set { _productPictures = value; }
        }


    

    }
}